/**
 * Copyright (c) 2015-2017, Henry Yang 杨勇 (gismail@foxmail.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.lambkit.module.ucenter.rpc.model.sql;

import com.lambkit.db.sql.ConditionMode;
import com.lambkit.db.sql.column.Column;
import com.lambkit.db.sql.column.Columns;
import com.lambkit.db.sql.column.Example;

import java.io.Serializable;
import java.util.List;

/**
 * @author Henry 杨勇 (孤竹行) 
 * @website: www.lambkit.com
 * @email: gismail@foxmail.com
 * @date 2019-11-05
 * @version 1.0
 * @since 1.0
 */
public class UcenterUserDetailsCriteria extends Columns implements Serializable {
	private static final long serialVersionUID = 1L;
	
	public static UcenterUserDetailsCriteria create() {
		return new UcenterUserDetailsCriteria();
	}
	
	public static UcenterUserDetailsCriteria create(Column column) {
		UcenterUserDetailsCriteria that = new UcenterUserDetailsCriteria();
		that.add(column);
        return that;
    }

    public static UcenterUserDetailsCriteria create(String name, Object value) {
        return (UcenterUserDetailsCriteria) create().eq(name, value);
    }
    
    public Example example() {
    	return Example.create("ucenter_user_details", this);
    }
    
    /**
     * equals
     *
     * @param name
     * @param value
     * @return
     */
    public UcenterUserDetailsCriteria eq(String name, Object value) {
    	super.eq(name, value);
        return this;
    }

    /**
     * not equals !=
     *
     * @param name
     * @param value
     * @return
     */
    public UcenterUserDetailsCriteria ne(String name, Object value) {
    	super.ne(name, value);
        return this;
    }


    /**
     * like
     *
     * @param name
     * @param value
     * @return
     */

    public UcenterUserDetailsCriteria like(String name, Object value) {
    	super.like(name, value);
        return this;
    }
    
    public UcenterUserDetailsCriteria notLike(String name, Object value) {
    	super.notLike(name, value);
        return this;
    }

    /**
     * 大于 great than
     *
     * @param name
     * @param value
     * @return
     */
    public UcenterUserDetailsCriteria gt(String name, Object value) {
    	super.gt(name, value);
        return this;
    }

    /**
     * 大于等于 great or equal
     *
     * @param name
     * @param value
     * @return
     */
    public UcenterUserDetailsCriteria ge(String name, Object value) {
    	super.ge(name, value);
        return this;
    }

    /**
     * 小于 less than
     *
     * @param name
     * @param value
     * @return
     */
    public UcenterUserDetailsCriteria lt(String name, Object value) {
    	super.lt(name, value);
        return this;
    }

    /**
     * 小于等于 less or equal
     *
     * @param name
     * @param value
     * @return
     */
    public UcenterUserDetailsCriteria le(String name, Object value) {
    	super.le(name, value);
        return this;
    }
    
    public UcenterUserDetailsCriteria isnull(String name) {
    	super.isnull(name);
        return this;
    } 

    public UcenterUserDetailsCriteria notNull(String name) {
    	super.notNull(name);
        return this;
    } 
    
    public UcenterUserDetailsCriteria empty(String name) {
    	super.empty(name);
        return this;
    } 
    
    public UcenterUserDetailsCriteria notEmpty(String name) {
    	super.notEmpty(name);
        return this;
    } 
    
    public UcenterUserDetailsCriteria add(Column column) {
    	super.add(column);
    	return this;
    }
    
    /**************************/
	
	public void addCriterion(String name, Object value, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value == null) {
			 throw new RuntimeException("Value for " + property + " cannot be null");
		 }
		 add(Column.create(name, value, logic, typeHandler, valueType));
	}
   
	public void addCriterion(String name, Object value1, Object value2, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value1 == null || value2 == null) {
			 throw new RuntimeException("Between values for " + property + " cannot be null");
		 }
		 add(Column.create(name, value1, value2, logic, typeHandler, valueType));
	}
		 
	public UcenterUserDetailsCriteria andUserIdIsNull() {
		isnull("user_id");
		return this;
	}
	
	public UcenterUserDetailsCriteria andUserIdIsNotNull() {
		notNull("user_id");
		return this;
	}
	
	public UcenterUserDetailsCriteria andUserIdIsEmpty() {
		empty("user_id");
		return this;
	}

	public UcenterUserDetailsCriteria andUserIdIsNotEmpty() {
		notEmpty("user_id");
		return this;
	}
       public UcenterUserDetailsCriteria andUserIdEqualTo(java.lang.Long value) {
          addCriterion("user_id", value, ConditionMode.EQUAL, "userId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserDetailsCriteria andUserIdNotEqualTo(java.lang.Long value) {
          addCriterion("user_id", value, ConditionMode.NOT_EQUAL, "userId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserDetailsCriteria andUserIdGreaterThan(java.lang.Long value) {
          addCriterion("user_id", value, ConditionMode.GREATER_THEN, "userId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserDetailsCriteria andUserIdGreaterThanOrEqualTo(java.lang.Long value) {
          addCriterion("user_id", value, ConditionMode.GREATER_EQUAL, "userId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserDetailsCriteria andUserIdLessThan(java.lang.Long value) {
          addCriterion("user_id", value, ConditionMode.LESS_THEN, "userId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserDetailsCriteria andUserIdLessThanOrEqualTo(java.lang.Long value) {
          addCriterion("user_id", value, ConditionMode.LESS_EQUAL, "userId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserDetailsCriteria andUserIdBetween(java.lang.Long value1, java.lang.Long value2) {
    	  addCriterion("user_id", value1, value2, ConditionMode.BETWEEN, "userId", "java.lang.Long", "Float");
    	  return this;
      }

      public UcenterUserDetailsCriteria andUserIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
          addCriterion("user_id", value1, value2, ConditionMode.NOT_BETWEEN, "userId", "java.lang.Long", "Float");
          return this;
      }
        
      public UcenterUserDetailsCriteria andUserIdIn(List<java.lang.Long> values) {
          addCriterion("user_id", values, ConditionMode.IN, "userId", "java.lang.Long", "Float");
          return this;
      }

      public UcenterUserDetailsCriteria andUserIdNotIn(List<java.lang.Long> values) {
          addCriterion("user_id", values, ConditionMode.NOT_IN, "userId", "java.lang.Long", "Float");
          return this;
      }
	public UcenterUserDetailsCriteria andSignatureIsNull() {
		isnull("signature");
		return this;
	}
	
	public UcenterUserDetailsCriteria andSignatureIsNotNull() {
		notNull("signature");
		return this;
	}
	
	public UcenterUserDetailsCriteria andSignatureIsEmpty() {
		empty("signature");
		return this;
	}

	public UcenterUserDetailsCriteria andSignatureIsNotEmpty() {
		notEmpty("signature");
		return this;
	}
        public UcenterUserDetailsCriteria andSignatureLike(java.lang.String value) {
    	   addCriterion("signature", value, ConditionMode.FUZZY, "signature", "java.lang.String", "Float");
    	   return this;
      }

      public UcenterUserDetailsCriteria andSignatureNotLike(java.lang.String value) {
          addCriterion("signature", value, ConditionMode.NOT_FUZZY, "signature", "java.lang.String", "Float");
          return this;
      }
      public UcenterUserDetailsCriteria andSignatureEqualTo(java.lang.String value) {
          addCriterion("signature", value, ConditionMode.EQUAL, "signature", "java.lang.String", "String");
          return this;
      }

      public UcenterUserDetailsCriteria andSignatureNotEqualTo(java.lang.String value) {
          addCriterion("signature", value, ConditionMode.NOT_EQUAL, "signature", "java.lang.String", "String");
          return this;
      }

      public UcenterUserDetailsCriteria andSignatureGreaterThan(java.lang.String value) {
          addCriterion("signature", value, ConditionMode.GREATER_THEN, "signature", "java.lang.String", "String");
          return this;
      }

      public UcenterUserDetailsCriteria andSignatureGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("signature", value, ConditionMode.GREATER_EQUAL, "signature", "java.lang.String", "String");
          return this;
      }

      public UcenterUserDetailsCriteria andSignatureLessThan(java.lang.String value) {
          addCriterion("signature", value, ConditionMode.LESS_THEN, "signature", "java.lang.String", "String");
          return this;
      }

      public UcenterUserDetailsCriteria andSignatureLessThanOrEqualTo(java.lang.String value) {
          addCriterion("signature", value, ConditionMode.LESS_EQUAL, "signature", "java.lang.String", "String");
          return this;
      }

      public UcenterUserDetailsCriteria andSignatureBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("signature", value1, value2, ConditionMode.BETWEEN, "signature", "java.lang.String", "String");
    	  return this;
      }

      public UcenterUserDetailsCriteria andSignatureNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("signature", value1, value2, ConditionMode.NOT_BETWEEN, "signature", "java.lang.String", "String");
          return this;
      }
        
      public UcenterUserDetailsCriteria andSignatureIn(List<java.lang.String> values) {
          addCriterion("signature", values, ConditionMode.IN, "signature", "java.lang.String", "String");
          return this;
      }

      public UcenterUserDetailsCriteria andSignatureNotIn(List<java.lang.String> values) {
          addCriterion("signature", values, ConditionMode.NOT_IN, "signature", "java.lang.String", "String");
          return this;
      }
	public UcenterUserDetailsCriteria andRealNameIsNull() {
		isnull("real_name");
		return this;
	}
	
	public UcenterUserDetailsCriteria andRealNameIsNotNull() {
		notNull("real_name");
		return this;
	}
	
	public UcenterUserDetailsCriteria andRealNameIsEmpty() {
		empty("real_name");
		return this;
	}

	public UcenterUserDetailsCriteria andRealNameIsNotEmpty() {
		notEmpty("real_name");
		return this;
	}
        public UcenterUserDetailsCriteria andRealNameLike(java.lang.String value) {
    	   addCriterion("real_name", value, ConditionMode.FUZZY, "realName", "java.lang.String", "String");
    	   return this;
      }

      public UcenterUserDetailsCriteria andRealNameNotLike(java.lang.String value) {
          addCriterion("real_name", value, ConditionMode.NOT_FUZZY, "realName", "java.lang.String", "String");
          return this;
      }
      public UcenterUserDetailsCriteria andRealNameEqualTo(java.lang.String value) {
          addCriterion("real_name", value, ConditionMode.EQUAL, "realName", "java.lang.String", "String");
          return this;
      }

      public UcenterUserDetailsCriteria andRealNameNotEqualTo(java.lang.String value) {
          addCriterion("real_name", value, ConditionMode.NOT_EQUAL, "realName", "java.lang.String", "String");
          return this;
      }

      public UcenterUserDetailsCriteria andRealNameGreaterThan(java.lang.String value) {
          addCriterion("real_name", value, ConditionMode.GREATER_THEN, "realName", "java.lang.String", "String");
          return this;
      }

      public UcenterUserDetailsCriteria andRealNameGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("real_name", value, ConditionMode.GREATER_EQUAL, "realName", "java.lang.String", "String");
          return this;
      }

      public UcenterUserDetailsCriteria andRealNameLessThan(java.lang.String value) {
          addCriterion("real_name", value, ConditionMode.LESS_THEN, "realName", "java.lang.String", "String");
          return this;
      }

      public UcenterUserDetailsCriteria andRealNameLessThanOrEqualTo(java.lang.String value) {
          addCriterion("real_name", value, ConditionMode.LESS_EQUAL, "realName", "java.lang.String", "String");
          return this;
      }

      public UcenterUserDetailsCriteria andRealNameBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("real_name", value1, value2, ConditionMode.BETWEEN, "realName", "java.lang.String", "String");
    	  return this;
      }

      public UcenterUserDetailsCriteria andRealNameNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("real_name", value1, value2, ConditionMode.NOT_BETWEEN, "realName", "java.lang.String", "String");
          return this;
      }
        
      public UcenterUserDetailsCriteria andRealNameIn(List<java.lang.String> values) {
          addCriterion("real_name", values, ConditionMode.IN, "realName", "java.lang.String", "String");
          return this;
      }

      public UcenterUserDetailsCriteria andRealNameNotIn(List<java.lang.String> values) {
          addCriterion("real_name", values, ConditionMode.NOT_IN, "realName", "java.lang.String", "String");
          return this;
      }
	public UcenterUserDetailsCriteria andBirthdayIsNull() {
		isnull("birthday");
		return this;
	}
	
	public UcenterUserDetailsCriteria andBirthdayIsNotNull() {
		notNull("birthday");
		return this;
	}
	
	public UcenterUserDetailsCriteria andBirthdayIsEmpty() {
		empty("birthday");
		return this;
	}

	public UcenterUserDetailsCriteria andBirthdayIsNotEmpty() {
		notEmpty("birthday");
		return this;
	}
       public UcenterUserDetailsCriteria andBirthdayEqualTo(java.util.Date value) {
          addCriterion("birthday", value, ConditionMode.EQUAL, "birthday", "java.util.Date", "String");
          return this;
      }

      public UcenterUserDetailsCriteria andBirthdayNotEqualTo(java.util.Date value) {
          addCriterion("birthday", value, ConditionMode.NOT_EQUAL, "birthday", "java.util.Date", "String");
          return this;
      }

      public UcenterUserDetailsCriteria andBirthdayGreaterThan(java.util.Date value) {
          addCriterion("birthday", value, ConditionMode.GREATER_THEN, "birthday", "java.util.Date", "String");
          return this;
      }

      public UcenterUserDetailsCriteria andBirthdayGreaterThanOrEqualTo(java.util.Date value) {
          addCriterion("birthday", value, ConditionMode.GREATER_EQUAL, "birthday", "java.util.Date", "String");
          return this;
      }

      public UcenterUserDetailsCriteria andBirthdayLessThan(java.util.Date value) {
          addCriterion("birthday", value, ConditionMode.LESS_THEN, "birthday", "java.util.Date", "String");
          return this;
      }

      public UcenterUserDetailsCriteria andBirthdayLessThanOrEqualTo(java.util.Date value) {
          addCriterion("birthday", value, ConditionMode.LESS_EQUAL, "birthday", "java.util.Date", "String");
          return this;
      }

      public UcenterUserDetailsCriteria andBirthdayBetween(java.util.Date value1, java.util.Date value2) {
    	  addCriterion("birthday", value1, value2, ConditionMode.BETWEEN, "birthday", "java.util.Date", "String");
    	  return this;
      }

      public UcenterUserDetailsCriteria andBirthdayNotBetween(java.util.Date value1, java.util.Date value2) {
          addCriterion("birthday", value1, value2, ConditionMode.NOT_BETWEEN, "birthday", "java.util.Date", "String");
          return this;
      }
        
      public UcenterUserDetailsCriteria andBirthdayIn(List<java.util.Date> values) {
          addCriterion("birthday", values, ConditionMode.IN, "birthday", "java.util.Date", "String");
          return this;
      }

      public UcenterUserDetailsCriteria andBirthdayNotIn(List<java.util.Date> values) {
          addCriterion("birthday", values, ConditionMode.NOT_IN, "birthday", "java.util.Date", "String");
          return this;
      }
	public UcenterUserDetailsCriteria andQuestionIsNull() {
		isnull("question");
		return this;
	}
	
	public UcenterUserDetailsCriteria andQuestionIsNotNull() {
		notNull("question");
		return this;
	}
	
	public UcenterUserDetailsCriteria andQuestionIsEmpty() {
		empty("question");
		return this;
	}

	public UcenterUserDetailsCriteria andQuestionIsNotEmpty() {
		notEmpty("question");
		return this;
	}
        public UcenterUserDetailsCriteria andQuestionLike(java.lang.String value) {
    	   addCriterion("question", value, ConditionMode.FUZZY, "question", "java.lang.String", "String");
    	   return this;
      }

      public UcenterUserDetailsCriteria andQuestionNotLike(java.lang.String value) {
          addCriterion("question", value, ConditionMode.NOT_FUZZY, "question", "java.lang.String", "String");
          return this;
      }
      public UcenterUserDetailsCriteria andQuestionEqualTo(java.lang.String value) {
          addCriterion("question", value, ConditionMode.EQUAL, "question", "java.lang.String", "String");
          return this;
      }

      public UcenterUserDetailsCriteria andQuestionNotEqualTo(java.lang.String value) {
          addCriterion("question", value, ConditionMode.NOT_EQUAL, "question", "java.lang.String", "String");
          return this;
      }

      public UcenterUserDetailsCriteria andQuestionGreaterThan(java.lang.String value) {
          addCriterion("question", value, ConditionMode.GREATER_THEN, "question", "java.lang.String", "String");
          return this;
      }

      public UcenterUserDetailsCriteria andQuestionGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("question", value, ConditionMode.GREATER_EQUAL, "question", "java.lang.String", "String");
          return this;
      }

      public UcenterUserDetailsCriteria andQuestionLessThan(java.lang.String value) {
          addCriterion("question", value, ConditionMode.LESS_THEN, "question", "java.lang.String", "String");
          return this;
      }

      public UcenterUserDetailsCriteria andQuestionLessThanOrEqualTo(java.lang.String value) {
          addCriterion("question", value, ConditionMode.LESS_EQUAL, "question", "java.lang.String", "String");
          return this;
      }

      public UcenterUserDetailsCriteria andQuestionBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("question", value1, value2, ConditionMode.BETWEEN, "question", "java.lang.String", "String");
    	  return this;
      }

      public UcenterUserDetailsCriteria andQuestionNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("question", value1, value2, ConditionMode.NOT_BETWEEN, "question", "java.lang.String", "String");
          return this;
      }
        
      public UcenterUserDetailsCriteria andQuestionIn(List<java.lang.String> values) {
          addCriterion("question", values, ConditionMode.IN, "question", "java.lang.String", "String");
          return this;
      }

      public UcenterUserDetailsCriteria andQuestionNotIn(List<java.lang.String> values) {
          addCriterion("question", values, ConditionMode.NOT_IN, "question", "java.lang.String", "String");
          return this;
      }
	public UcenterUserDetailsCriteria andAnswerIsNull() {
		isnull("answer");
		return this;
	}
	
	public UcenterUserDetailsCriteria andAnswerIsNotNull() {
		notNull("answer");
		return this;
	}
	
	public UcenterUserDetailsCriteria andAnswerIsEmpty() {
		empty("answer");
		return this;
	}

	public UcenterUserDetailsCriteria andAnswerIsNotEmpty() {
		notEmpty("answer");
		return this;
	}
        public UcenterUserDetailsCriteria andAnswerLike(java.lang.String value) {
    	   addCriterion("answer", value, ConditionMode.FUZZY, "answer", "java.lang.String", "String");
    	   return this;
      }

      public UcenterUserDetailsCriteria andAnswerNotLike(java.lang.String value) {
          addCriterion("answer", value, ConditionMode.NOT_FUZZY, "answer", "java.lang.String", "String");
          return this;
      }
      public UcenterUserDetailsCriteria andAnswerEqualTo(java.lang.String value) {
          addCriterion("answer", value, ConditionMode.EQUAL, "answer", "java.lang.String", "String");
          return this;
      }

      public UcenterUserDetailsCriteria andAnswerNotEqualTo(java.lang.String value) {
          addCriterion("answer", value, ConditionMode.NOT_EQUAL, "answer", "java.lang.String", "String");
          return this;
      }

      public UcenterUserDetailsCriteria andAnswerGreaterThan(java.lang.String value) {
          addCriterion("answer", value, ConditionMode.GREATER_THEN, "answer", "java.lang.String", "String");
          return this;
      }

      public UcenterUserDetailsCriteria andAnswerGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("answer", value, ConditionMode.GREATER_EQUAL, "answer", "java.lang.String", "String");
          return this;
      }

      public UcenterUserDetailsCriteria andAnswerLessThan(java.lang.String value) {
          addCriterion("answer", value, ConditionMode.LESS_THEN, "answer", "java.lang.String", "String");
          return this;
      }

      public UcenterUserDetailsCriteria andAnswerLessThanOrEqualTo(java.lang.String value) {
          addCriterion("answer", value, ConditionMode.LESS_EQUAL, "answer", "java.lang.String", "String");
          return this;
      }

      public UcenterUserDetailsCriteria andAnswerBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("answer", value1, value2, ConditionMode.BETWEEN, "answer", "java.lang.String", "String");
    	  return this;
      }

      public UcenterUserDetailsCriteria andAnswerNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("answer", value1, value2, ConditionMode.NOT_BETWEEN, "answer", "java.lang.String", "String");
          return this;
      }
        
      public UcenterUserDetailsCriteria andAnswerIn(List<java.lang.String> values) {
          addCriterion("answer", values, ConditionMode.IN, "answer", "java.lang.String", "String");
          return this;
      }

      public UcenterUserDetailsCriteria andAnswerNotIn(List<java.lang.String> values) {
          addCriterion("answer", values, ConditionMode.NOT_IN, "answer", "java.lang.String", "String");
          return this;
      }
}